<?php
header("Access-Control-Allow-Origin:*"); // 制定允许其他域名访问

header('Access-Control-Allow-Methods:POST'); // 响应类型

header('Access-Control-Allow-Headers:x-requested-with, content-type'); // 响应头设置
    include './base.php';
    $roomAddress = $_POST["roomAddress"];
    $roomType = $_POST["roomType"];
    $roomStatus = $_POST["status"];
    $price = $_POST["price"];
    $sql = "insert into room value(null,'$roomAddress','$roomType','$roomStatus',$price)";
    mysql_query($sql);
    print_r("添加成功!");
    // print_r($sql);
?>